import {View, Text, Button} from 'react-native';
import React from 'react';
import {useNavigation} from '@react-navigation/native';

export default function Detail() {
  const navigation = useNavigation();

  return (
    <View>
      <Text>Detail</Text>
      <Button
        // onPress={() => navigation.replace('Messages', {screen: 'Messages'})}
        onPress={() => navigation.jumpTo('Messages', {owner: 'sdad'})}
        title="点击至 info"
      />
    </View>
  );
}
